﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;
using System.Reflection;
using System.Globalization;
using System.Resources;

namespace etimet
{
    static class Program
    {
        public static AppConfiguration conf;

        /// <summary>
        /// provides access to the notify icon from the options dialog, to enable application restart
        /// </summary>
        public static MainForm mainform;

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            conf = new AppConfiguration();

            Thread.CurrentThread.CurrentUICulture = new CultureInfo(conf.CurrentLang);
            Thread.CurrentThread.CurrentCulture = new CultureInfo(conf.CurrentLang);
            
            mainform = new MainForm();
            
            Application.Run(mainform);
        }
    }
}
